<?php 
defined('IN_SITE') or exit('Access Denied');
get_header();
?>
<body>
<?=$menu?>
<form name="search" method="get" action="">
<input type="hidden" name="module" value="<?=$module?>"> 
<input type="hidden" name="file" value="<?=$file?>"> 
<input type="hidden" name="action" value="<?=$action?>"> 
<input type="hidden" name="catid" value="<?=$catid?>">
<table cellpadding="0" cellspacing="1" class="table_form">
  <caption>信息查询</caption>
<tr>
<td>

标题：<input type="hidden" name="field" value="title">
<input type="text" name="q" value="<?=$q?>" size="20" />&nbsp;
发布时间：<?=form::date('inputdate_start')?> - <?=form::date('inputdate_end')?>&nbsp;
<input type="submit" name="dosubmit" value=" 查询 " />
</td>
</tr>
</table>
</form>
<form name="myform" method="post" action="">
<table cellpadding="0" cellspacing="1" class="table_list">
  <caption>
<?php
if($status==1000){
echo '审核信息管理';
}elseif($status==0) {
echo '回收站';
}else{
echo '信息管理';
}
?></caption>
<tr>
<th width="5%">选中</th>
<th width="5%">排序</th>
<th width="5%">ID</th>
<th width="35%">标题</th>
<th width="10%">状态</th>
<th width="10%">栏目</th>
<th width="10%">录入者</th>
<th width="21%">管理操作</th>
</tr>
<?php 
if(is_array($infos)){
	foreach($infos as $info){
?>
<tr>
<td align="center"><input type="checkbox" name="videoid[]" value="<?=$info['videoid']?>" id="content_<?=$info['videoid']?>" /></td>
<td align="center"><input type="text" name="listorders[<?=$info['videoid']?>]" value="<?=$info['listorder']?>" size="3" /></td>
<td align="center"><?=$info['videoid']?></td>
<td><a href="<?=$info['url']?>" target="_blank"><?=output::style($info['title'], $info['style'])?></a> <?=$info['thumb'] ? '<font color="red">图</font>' : ''?>&nbsp;<?=$info['posids']?'<font color="green">荐</font>': ''?>&nbsp;<?=$info['typeid']?'<font color="blue">类</font>': ''?></td>
<td align="center"><?=$STATUS[$info['status']]?></td>
<td align="center"><a href="<?=$CATEGORY[$info['catid']]['url']?>" target="_blank"><?=$CATEGORY[$info['catid']]['catname']?></a></td>
<td align="center"><a href="?module=member&action=view&userid=<?=$info['userid']?>"><?=$info['username']?><br/><?=date('Y-m-d H:i', $info['updatetime'])?></td>
<td align="center">
<a href="?module=<?=$module?>&action=view&catid=<?=$catid?>&videoid=<?=$info['videoid']?>">查看</a> | 
<a href="?module=<?=$module?>&action=edit&catid=<?=$catid?>&videoid=<?=$info['videoid']?>">修改</a> | 
<a href="?module=<?=$module?>&action=log_list&catid=<?=$catid?>&videoid=<?=$info['videoid']?>">日志</a></td>
</tr>
<?php 
	}
}
?>
</table>
<div>
<span style="width:60px"><a href="###" onClick="javascript:$('input[type=checkbox]').attr('checked', true)">全选</a>/<a href="###" onClick="javascript:$('input[type=checkbox]').attr('checked', false)">取消</a></span>
		<input type="button" name="listorder" value=" 排序 " onClick="myform.action='?module=<?=$module?>&file=<?=$file?>&action=listorder&catid=<?=$catid?>&processid=<?=$processid?>&forward=<?=urlencode(URL)?>';myform.submit();"> 
		<input type="button" name="delete" value=" 删除 " onClick="myform.action='?module=<?=$module?>&file=<?=$file?>&action=<?=$status==0?'delete':'cancel'?>&catid=<?=$catid?>&processid=<?=$processid?>&forward=<?=urlencode(URL)?>';myform.submit();"> 
		<input type="button" name="pass" value="终审通过"  onclick="myform.action='?module=<?=$module?>&file=<?=$file?>&action=pass&catid=<?=$catid?>&forward=<?=urlencode(URL)?>';myform.submit();"> 
</div>
<div class="pages"><?=$c->pages?></div>
</form>
</body>
</html>